package com.guigu.eduservice.mapper;

import com.guigu.eduservice.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 角色权限关联表（实现角色与权限的多对多关系） Mapper 接口
 * </p>
 *
 * @author janecraft
 * @since 2025-09-27
 */
@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    //向数据库批量插入角色权限关联表
    int batchInsert(List<RolePermission> rolePermissionList);


    //更具角色Id删除角色权限表
    int deleteRolePermission(Long  roleId);
}
